#include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	int a[15];
	for(int i=0;i<10;i++)
	{
		cin>>a[i];
	}
	int average=0;
	int sum=0;
	for(int i=0;i<=9;i++)
	{
		sum+=a[i];
	}
	average=sum/10;
	sort(a,a+10);
	cout<<"max:"<<a[9]<<endl;
	cout<<"min:"<<a[0]<<endl;
	cout<<"average:"<<average<<endl;
	return 0;
}
